package cn.han.review;
//本类用于复习构造函数
public class TestConstructor {
    public static void main(String[] args) {
        Phone phone = new Phone("sa",2,3.2);
    }
}
class Phone{
    String brand;
    int id;
    double price;

    public Phone(String brand, int id, double price) {
        this.brand = brand;
        this.id = id;
        this.price = price;
    }
}
